package com.hotel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 关注公众号：MarkerHub
 * @since 2020-10-19
 */
@Data
@Entity//表面实体类
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Enter implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 房间号
     */
    private String houseId;

    /**
     * 客人id
     */
    private Integer customerId;

    /**
     * 客人详细信息
     */
    private String customerInfo;

    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 估计退房时间
     */
    private LocalDateTime endTimeEstimate;

    /**
     * 实际退房时间
     */
    private LocalDateTime endTimeActual;

    /**
     * 订房者
     */
    private String orderCustomerId;

    /**
     * 已缴费总额
     */
    private Integer feeTotal;

    /**
     * 缴费流水id集合
     */
    private String feeInfo;

    /**
     * 相关操作员id
     */
    private Integer userId;

    /**
     * 状态
     */
    private Integer state;

    /**
     * 已谈好的房价
     */
    private Integer price;
    /**
     * 押金
     */
    private BigDecimal deposit;
}
